/**
 * 
 */
$(document).ready(function() {
	var uid = window.parent.document.getElementsByClassName("handler")[0].id;
	$("#editPwd").click(function(){
		var oldPwd = $("#oldPwd").val();
		var newPwd = $("#newPwd").val();
		var agePwd = $("#agePwd").val();
		if(newPwd != agePwd){
			alert("前后密码不一致");
			return;
		}
		$.get(
			"user/editPwd",
			{"id":uid,"oldPwd":oldPwd,"newPwd":newPwd},
			function(result){
				if(result)
					alert("修改成功");
				else
					alert("修改失败 (用户名或密码错误)");
			}
		)
	});

	
});
	